//
//  AboutViewController.m
//  upnpxdemo
//
//  Created by 赵帅 on 13-9-3.
//  Copyright (c) 2013年 wiimu.inc. All rights reserved.
//

#import "AboutViewController.h"

@interface AboutViewController ()

@property (assign) IBOutlet UIImageView * iconImage;
@property (assign) IBOutlet UILabel * versionLabel;
@property (assign) IBOutlet UILabel * buildDateLabel;
@property (assign) IBOutlet UILabel * productNameLabel;
@property (assign) IBOutlet UILabel * versionNameLabel;
@property (assign) IBOutlet UILabel * buildDateNameLabel;

@end

@implementation AboutViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
   
    NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString *)kCFBundleVersionKey];
    _versionLabel.text = version;
    
    _buildDateLabel.text = [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString *)@"BUILDTIME"];
    _versionNameLabel.text = NSLocalizedString(@"VERSIONNUMBER",@"");
    _buildDateNameLabel.text = NSLocalizedString(@"BUILDDATE",@"");
    _productNameLabel.text = NSLocalizedString(@"APPNAME", @"");
    
    [_iconImage.layer setMasksToBounds:YES];
    [_iconImage.layer setCornerRadius:10.0];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - navigation methods
-(NSString *)navigationBarTitle
{
    return NSLocalizedString(@"ABOUT",@"");
}
@end
